

#define BUFFER_SIZE 256
#define TOTAL_PAGES 2048
#define NEXT_PAGE 0
#define PREV_PAGE 1
#define PREV_DATA 0
#define NEXT_DATA 1


#define NO_DATA 0
#define NO_FULL 1
#define FULL	2


void write_data(char value);
void save_data_to_flash(void);
void get_page_and_address1(uint32_t data);
void get_page_and_address2(uint32_t data);
void read_data(char x);
